<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>阅学网</title>
<meta name="Keywords"	content="">
<meta name="description" content="">
<style type="text/css">
table{
	border-right:1px solid #DDDDDD;
	border-bottom:1px solid #DDDDDD;
}
table td{
		border-left:1px solid #DDDDDD;
		border-top:1px solid #DDDDDD;
		height: 30px;
}
.showCon{
	margin-left: 200px;
}
</style>
<jsp:include page="/user/common.jsp"></jsp:include>
 <script type="text/javascript" charset="utf-8" src="ueditor/ueditor.config.js"></script>
  <script type="text/javascript" charset="utf-8" src="ueditor/ueditor.all.min.js"> </script>
  <script type="text/javascript" charset="utf-8" src="ueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" src="js/user/article/article.js"></script> 
</head>
<body>
<jsp:include page="/user/top.jsp"></jsp:include>
				<div class="showCon" >
				<h3 style="margin-left: 350px;">发表文章</h3>
				<table width="790" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td style="width: 140px;">文章标题<span style="color: red;">*</span></td>
					<td><input type="text" name="articleTitle" style="height: 25px;border: 1px solid #FF892A;width: 700px;"/></td>
				</tr>
				<tr style="height: 60px;">
					<td>简要概述<span style="color: red;">*</span></td>
					<td><textarea rows="2"  name="articleBriefIntroduction"  style="border: 1px solid #FF892A;width: 700px;height: 60px;"></textarea></td>
				</tr>
				<tr>
					<td>文章类型<span style="color: red;">*</span></td>
					<td>
						<select name="category" id="category" style="width: 300px;" onchange="selectByCategory();">
							<option value="1" selected="selected">编程开发</option>
							<option value="2">数据库</option>
							<option value="3">前端开发</option>
							<option value="4">服务器</option>
							<option value="5">云计算</option>
							<option value="6">大数据</option>
						</select>
						<select name="articleTypeId" style="width: 300px;" id="articleTypeId">
						</select>
					</td>
				</tr>
				<tr>
					<td>文章类容<span style="color: red;">*</span></td>
					<td>
						<script id="editor" type="text/plain"></script>
					</td>
				</tr>
				</table>
							
					<div class="articleDetail">
							<a class="zhichi" href="javascript:void(0);" onclick="publishArticleSave();">保存</a>
							<a class="fandui" href="javascript:void(0);" onclick="cleanContent();">重写</a>
				</div>
				</div>
				
		<script type="text/javascript">
				    //实例化编辑器
				    //建议使用工厂方法getEditor创建和引用编辑器实例，如果在某个闭包下引用该编辑器，直接调用UE.getEditor('editor')就能拿到相关的实例
				    var ue = UE.getEditor('editor');
		</script>	
</body>
</html>
